package com.epfresh.supplier.entity;

import multitype.suspension.ISuspensionInterface;

/**
 * Author: Chen
 * Date: 2018/11/29
 * Desc:
 */
public class CategoryThreeEntity implements ISuspensionInterface {
    private String iconId;
    private String name;
    private String id;
    private boolean moml;
    private String sort;
    private String iconUrl;

    private String parentId;
    private String parentName;

    private String grandParentId;
    private String grandParentName;

    private boolean select;

    private String type = "2";

    public String getType() {
        return type;
    }

    public String getIconId() {
        return iconId;
    }

    public void setIconId(String iconId) {
        this.iconId = iconId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isMoml() {
        return moml;
    }

    public void setMoml(boolean moml) {
        this.moml = moml;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getGrandParentId() {
        return grandParentId;
    }

    public void setGrandParentId(String grandParentId) {
        this.grandParentId = grandParentId;
    }

    public String getGrandParentName() {
        return grandParentName;
    }

    public void setGrandParentName(String grandParentName) {
        this.grandParentName = grandParentName;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public boolean isCategoryType(){
        return "1".equals(type);
    }

    @Override
    public boolean isShowSuspension() {
        return parentName != null;
    }

    @Override
    public String getSuspensionTag() {
        return parentName;
    }
    @Override
    public String getSuspensionTagId() {
        return parentId;
    }

    @Override
    public boolean isSuspensionTitle() {
        return false;
    }
}
